{extend name="layout:base" /}{block name="content"}
<?php
$global=isSupperManagerForSession();
?>
<style>
.table th{text-align:center;}
.tip{position:absolute;background:#9FC;border-color:#F60;z-index:9999;filter:alpha(opacity=80);-moz-opacity:0.8;-khtml-opacity: 0.8;opacity: 0.8;}
.hidden-detail{display:none;}
.mypointer{width:95%;overflow:hidden;height:25px;line-height:25px;cursor: pointer;}
</style>

<link rel="stylesheet" type="text/css" href="/static/admin/css/style.css" />
<script src="/static/mimi/js/confirm/js/jquery-1.9.1.js"></script>
<link rel="stylesheet" href="/static/mimi/css/animate.min.css" type="text/css" />
<link rel="stylesheet" href="/static/mimi/css/font-awesome.min.css" type="text/css" />
   
<section class="topBanners">
   <div class="icon"></div>
   <div class="topBannersNav">
       <span data-url="/admin/classlist/lists" onclick="ContentLoadGo('/admin/classlist/lists')">挑战管理</span>
       >
   		<span data-url="/admin/classlist/salelists" onclick="ContentLoadGo('/admin/classlist/salelists?class_id=<?php echo $class_id; ?>')">销售管理</span>
   		>
       <span data-url="/admin/classlist/salelists" onclick="ContentLoadGo('/admin/classlist/checkinlist?class_id=<?php echo $class_id; ?>&uid=<?php echo $uid; ?>')">打卡记录</span>
   </div>
</section>
   
<section id="serach_section" style="margin-top:10px;margin-left:auto;margin-right:auto;">

      <input type="hidden" value="搜索" class="group_btn research" id="resource" page="1" />
    
      <br style="clear:both;width:0px;height:0px;">
</section>
 
<table class="table" style="margin-top:10px;">
<tr>
<th style="width:50px;">ID</th>
<th style="width:150px;">日期</th>
<th style="width:150px;">姓名</th>
<th style="width:150px;">打卡时间</th>
<th style="width:150px;">状态</th>
<th style="width:150px;">第几天</th>
</tr>
<?php 
foreach($lists['data'] as $key=>$val)
{
?>
<tr data-id="<?php echo $val['id']; ?>" data-uid="<?php echo $val['uid']; ?>">
<td style="text-align:left;"><?php echo $val['id']; ?></td>

<td><?php echo $val['y']."-".$val['m']."-".$val['d']; ?></td>
<td><?php echo $val['UserInfo']['nickname'];?></td>
<td><?php echo $val['ctime'];?></td>
<td><?php if($val['type']==0){echo '未打卡';}else if($val['type']==1){echo '已打卡';}else if($val['type']==2){echo '请假';}?></td>
    <td>第<?php echo $val['day'];?>天</td>
</tr>

<?php
}
?>
</table>
{include file="../application/admin/view/layout/page_tpl_new.html" /}
<script type="text/javascript">
function myResearch(){
    var url="/admin/classlist/checkinlists";
    var generaData=$("#serach_section [name^='ser_']");
    var page=$("#cpage").val();
    var class_id = "<?php  echo $class_id; ?>";
    var uid = "<?php  echo $uid; ?>";
    var param={
        page:page,
        class_id:class_id,
        uid:uid
    };
    getSearchFormData(generaData,param);
    ContentLoadGo(url,param);
}

$(function(){
 //设置搜索栏
 $(".research").unbind().bind("click",function(){
    var page =$(this).attr("page");
    $("#cpage").val(page);
    myResearch();
 });



        	   
//导航
$(".topBannerItem").unbind().bind("click",function(){
   var attArr = $(this).attr();
   goToSelfLink(attArr);

});
//全选
$("#all").unbind().bind("click",function(){
    if(this.checked){
        $(".checkBoxInput").attr("checked", true);
        $(".checkBoxInput").prop("checked", true);
    }else{
        $(".checkBoxInput").attr("checked", false);
        $(".checkBoxInput").prop("checked", false);
    }
    var se=getAllSelectItem();
});

});
</script>
<script>
$(function (){
    $("[data-toggle='tooltip']").tooltip();
});
</script>
{/block}
   